
using Qdb.Foundation;
using Qdb.Internal;

namespace Qdb.Internal.Marshall
{
	/// <exclude></exclude>
	public class ObjectHeaderAttributes
	{
		private readonly int _fieldCount;

		private readonly BitMap4 _nullBitMap;

		public ObjectHeaderAttributes(ByteArrayBuffer reader)
		{
			_fieldCount = reader.ReadInt();
			_nullBitMap = reader.ReadBitMap(_fieldCount);
		}

		public virtual bool IsNull(int fieldIndex)
		{
			return _nullBitMap.IsTrue(fieldIndex);
		}
	}
}
